package com.lzy.product.constants;

public final class AgentOrderEnum {

    public static final String AGENT_NUMBER = "AGENT_NUMBER";


    /**
     * 订单类型
     */
    public enum OrderType {
        SetMeal(1, "套餐类"), Coupons(2, "卡券宝"), AgentAgreement(3, "代理商协议"), AgentProduct(4, "代理商产品");
        private Integer code;
        private String desc;

        OrderType(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    /**
     * 订单状态
     */
    public enum OrderStatus {
        NoPay(1, "待支付"), BuySuccess(2, "购买成功（审核中）"), Closed(3, "已关闭"), CashBack(4, "返现中"), Expired(5, "已到期");
        private Integer code;
        private String desc;

        OrderStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    /**
     * 卡券宝协议产品收益比率表 状态
     */
    public enum YieldRatioStatus {

        NotReturned(0, "未返现"), CashBack(1, "返现中"), CashBackEnd(2, "返现结束");

        private Integer code;

        private String desc;

        YieldRatioStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    /**
     * 卡券宝收益记录表 状态
     */
    public enum ProfitRecordStatus {
        Unused(0, "未使用"), Limit(1, "可限制"), LimitErroe(2, "可限制错误"), CashWithdrawal(3, "可提现"), CashWithdrawalErroe(4, "可提现错误");
        private Integer code;
        private String desc;

        ProfitRecordStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    /**
     * 卡券宝收益记录表 类型
     */
    public enum ProfitRecordType {
        PackageAllowance(1, "套餐补贴"), Brokerage(2, "佣金"), BondYield(3, "卖券收益"), AgentYield(4, "代理销售收益");
        private Integer code;
        private String desc;

        ProfitRecordType(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    public enum smsType {
        agent_umeng(-1);

        smsType(Integer value) {
            this.value = value;
        }

        private Integer value;

        public Integer getValue() {
            return value;
        }

        public void setValue(Integer value) {
            this.value = value;
        }
    }

}
